﻿-----------------------------------------
*** product all template *** 
-----------------------------------------
*** main template ***
-----------------------------------------
{#template main}
 <div>
  <div>{$T.name.bold()}</div>
  {#include table root=$T.table}
 </div>
{#/template main}

-----------------------------------------
*** main table ***
-----------------------------------------

{#template table}
 <table>
  {#foreach $T as r}
  {#include row root=$T.r}
  {#/for}
 </table>
{#/template table}

-----------------------------------------
*** for each row ***
-----------------------------------------
{#template row}
 <tr bgcolor="{#cycle values=['#AAAAEE','#CCCCFF']}">
  <td>{$T.name.bold()}</td>
  <td>{$T.age}</td>
  <td>{$T.mail.link('mailto:'+$T.mail)}</td>
 </tr>
{#/template row}
-----------------------------------------
*** product edit form ***
-----------------------------------------

{#template list}
 <div>
  <div>{$T.name.bold()}</div>
  {#include table root=$T.table}
 </div>
{#/template list}

-----------------------------------------


